package cn.wellwhz;

import cn.nukkit.plugin.PluginBase;
import cn.nukkit.utils.Config;
import cn.nukkit.utils.Logger;
import cn.wellwhz.listener.PlayerFartListener;

public class WFart extends PluginBase {
    public static WFart ins;
    public static Logger logger;
    public static Config config;

    @Override
    public void onEnable() {
        ins = this;
        logger = this.getLogger();
        logger.info("§c欢迎加载插件WFart，作者wellwhz");
        logger.info("§cBUG反馈QQ群859133351");
        this.saveDefaultConfig();
        config = this.getConfig();
        registerListener();
    }

    private void registerListener() {
        this.getServer().getPluginManager().registerEvents(new PlayerFartListener(), this);
    }

}
